ThreadListAdapter

open class ThreadListAdapter : BaseMessageListAdapter

ThreadListAdapter provides a binding from a thread message type data set to views that are displayed within a RecyclerView. since 3.3.0

Constructors

Link copied to clipboard
open fun ThreadListAdapter(@Nullable channel: GroupChannel, @NonNull messageListUIParams: MessageListUIParams)

Functions

Link copied to clipboard
open fun getItemViewType(position: Int): Int
Return the view type of the MessageViewHolder at position for the purposes of view recycling.
Link copied to clipboard
open fun onBindViewHolder(@NonNull holder: MessageViewHolder, position: Int)
Called by RecyclerView to display the data at the specified position.
Link copied to clipboard
open fun onCreateViewHolder(@NonNull parent: ViewGroup, viewType: Int): MessageViewHolder
Called when RecyclerView needs a new MessageViewHolder of the given type to represent an item.